package org.ls.petclinic.service.impl;

import cn.hutool.core.date.DateUtil;
import org.ls.petclinic.dao.CustomerDao;
import org.ls.petclinic.dao.impl.CustomerDaoImpl;
import org.ls.petclinic.pojo.Customer;
import org.ls.petclinic.service.CustomerService;

/**
 * @Description
 * @Author 浪矢先生
 * @Create 2022-06-10 0:39
 */
public class CustomerSericeImpl implements CustomerService {
    private CustomerDao customerDao =new CustomerDaoImpl();
    @Override
    public int saveCustomer(Customer customer) {
        customer.setCreateTime(DateUtil.now());
        customer.setIsSeeDoctor("就诊中");
        return customerDao.addCustormer(customer);
    }
}
